<!-- 如果vue3中需要使用js，得设置lang="ts" -->
<script setup lang="ts">
import Child from './02-Child.vue'
import { ref } from 'vue'
const money = ref(200)
const car = ref('兰博基尼')

const changeCar = (val: string) => {
  console.log('---changeCar---', val)
}

const changeMoney = (val: number) => {
  console.log('---changeMoney---', val)
}
</script>

<template>
  <div>
    <Child :money="money" @change-car="changeCar" @change-money="changeMoney" />
  </div>
</template>
